//Package promise 个人沟通训练系统
package promise

import (
	//"fmt"

	"gitee.com/wang_cyi/TryEverything/public"
	//"gitee.com/wang_cyi/TryEverything/sdkaibaidu"
)

// ShowVido60sByMusic 一个图片+一个音乐 数字输出
func ShowVido60sByMusic(picPath string, mp3Path string, outPath string) {
	var tool public.FfmPegTool
	tool.OnePicWithMP3toMp4(picPath, mp3Path, outPath)
}

//Shortvideo 根据文本和图片图片产生60秒视频。
func Shortvideo(picPath string, filePath string, mp3Path string, outPath string) {
   /**
	if sdkaibaidu.TextToVoice(filePath, mp3Path) < 0 {
		fmt.Println("sdk.TextToVoice failed")
	}**/

	var tool public.FfmPegTool
	tool.OnePicWithMP3toMp4(picPath, mp3Path, outPath)

}

//Shortvideo1 根据Mp3和图片产生60秒视频。
func Shortvideo1(picPath string, filePath string, mp3Path string, outPath string) {

	var tool public.FfmPegTool
	tool.OnePicWithMP3toMp4(picPath, mp3Path, outPath)

}
